package com.example.studyplanning.services;

import com.example.studyplanning.entity.Task;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TaskServices {
    List<Task> findAllTask();
    Integer insertTask(Task task);
    Integer DelTaskByID(Integer taskID);
    Integer UpdateTask(Task task);
    Integer UpdateLive(Integer taskID);
    List<Task> findTaskByName(String taskName);
    List<Task> SelectByDate(String date_time,Integer userID);
    Integer UpdateTaskLive(Integer taskID);
    List<Task> findByDate(String date_time,Integer userID);
    List<Task> findListByDate(String date_time,Integer userID);
    Integer UpdateTheTask(Task task);
    Integer SelectSumTime(String date_time,Integer userID);
    PageInfo<Task> SelectTheTask(Integer num,Integer taskID,String taskName,String taskClass,Integer taskType,Integer taskTime,Integer userID,Integer taskLive);
    PageInfo<Task> SelectTask(Integer num,String date_time, Integer taskID, String taskName, String taskClass, Integer taskType, Integer taskTime, Integer userID, Integer taskLive);
    Integer SelectSumTodo(String date_time,Integer userID);
    Integer SelectSumClock(String date_time,Integer userID);
    Integer SelectFinishedTodo(String date_time,Integer userID);
    Integer SelectFinishedClock(String date_time,Integer userID);
    //echarts
    List<Task> findAlltask();
    List<Task> findAlltaskToDo();
    List<Task> countAlltaskClock();
    List<Task> countAlltoDoUser();
    List<Task> countAllclockUser();
};

